<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/eff.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/structure.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/menu.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/table.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/search.css"/>">
        <link rel="stylesheet" type="text/css" href="<s:url value="/css/button.css"/>">
<title>Ajouter une province</title>
    </head>

<body>
        <%@ include file="/vues/menu.jsp" %>

	
				<s:fielderror></s:fielderror>
				    <center>
				<form action="<%=request.getContextPath()%>/provinces/AjouterProvince.action">
				<table cellspacing='0' id="inputText">
                <tbody>
					<td class="evento">nom :</td>
                        <td class="evento"><input type="text" name="nom" 
                        value="<s:property value="nom"/>"><div style="color: red;" 
                        align="left"><s:fielderror><s:param>nom</s:param></s:fielderror></div></td>	
                        
					<tr>
					<td class="evento">chef lieu :</td>
                        <td class="evento"><input type="text" name="description" 
                        value="<s:property value="description"/>"><div style="color: red;" 
                        align="left"><s:fielderror><s:param>description</s:param></s:fielderror></div></td>	
                    </tr>    
					<tr>
					<td class="evento">population :</td>
                        <td class="evento"><input type="text" name="population" 
                        value="<s:property value="population"/>"><div style="color: red;" 
                        align="left"><s:fielderror><s:param>population</s:param></s:fielderror></div></td>	
				</tr> 
					
					<tr>
						<td class="evento">Région d'appartenence :</td>
						<td>
						<c:choose>
						<c:when test="${not empty listeEmplacments}">
							<s:select  id="emplacement" name="idRegion" headerKey="aucun" 
							listKey="identifiant" listValue="nom"
									headerValue="Choisissez la région" list="listeEmplacments" 
									/> 
						</c:when>
						<c:otherwise>

<select >
										<option value="aucun">Choisissez l'emplacement</option>								</c:otherwise>
					</c:choose>
							</td> <br>
						
					</tr>
					<tr>
					<td class="evento" colspan="2"><input class="btnLogin" value="Ajouter" type="submit"></td>
					</tr>
					
				</tbody>
            </table>
				</form>
				 </center>
				
				
<s:if test="hasActionErrors()">
						<s:actionerror />
				</s:if>
			
</body>
</html>